<template>
  <div class="admin">
    <el-tabs v-model="activeName">
      <el-tab-pane label="发表文章" name="first">
        <PublishArticle
      /></el-tab-pane>
      <el-tab-pane label="文章管理" name="second">
        <ArticleAdmin />
      </el-tab-pane>
      <el-tab-pane label="添加友链" name="third">
        <AddLink />
      </el-tab-pane>
      <el-tab-pane label="友链管理" name="fourth">
        <LinkAdmin />
      </el-tab-pane>
      <el-tab-pane label="反馈收集" name="fifth">
        <Feedback />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import AddLink from "./component/AddLink.vue";
import ArticleAdmin from "./component/ArticleAdmin.vue";
import Feedback from "./component/Feedback.vue";
import LinkAdmin from "./component/LinkAdmin.vue";
import PublishArticle from "./component/PublishArticle.vue";
export default {
  name: "admin",
  components: {
    AddLink,
    ArticleAdmin,
    Feedback,
    LinkAdmin,
    PublishArticle,
  },
  data() {
    return {
      activeName: "third",
    };
  },
};
</script>

<style lang="less" scoped>
.admin {
  padding: 20px;
  background: #fff;
  min-height: 700px;
}
</style>